# coding:utf-8
# 作者：理想国真恵玩
import pandas as pd

# 读
df = pd.read_csv('data/stock.csv')
# print(df.head())

# 处理数据，只要开盘价和收盘价的前二十行
df1 = df.iloc[:20, [0, 3]]
print(df1)

# 写入
df1.to_csv('data/test.csv')
